<template>
  <div>
    <h1>List</h1>
    <button @click="sendDataHandle">向App发送数据</button>
  </div>
</template>

<script>
export default {
  name: "List",
  data() {
    return {
      count: ["小谢", "小文", "小彪"],
    };
  },
  methods: {
    sendDataHandle() {
      //触发自定义事件 传递数据
      this.$emit("getdataHanlde", this.count);
    },
  },
};
</script>

<style></style>
